<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>

<div class="block">
    
    <div class="block_head">
        <div class="bheadl"></div>
        <div class="bheadr"></div>
        
        <h2>Edit Location "<bean:write name="locationForm" property="locationName"/>"</h2>
        
        <ul class="tabs">
            <li><a href="#edit_tab">Edit Location</a></li>
            <li><a href="#chart_tab">Land Cost History</a></li>
        </ul>
    </div>
    <!-- .block_head ends -->
    
    <div class="block_content tab_content clearfix" id="edit_tab">
        <html:form styleId="locationForm" action="admin/location.do" method="post">
            
            <logic:notEmpty name="errorMessages" >
                <div class="message errormsg">
                    <logic:iterate id="message" name="errorMessages">
                        <p><bean:write name="message"/></p>
                    </logic:iterate>
                </div>
            </logic:notEmpty>
            <logic:notEmpty name="successMessages" >
                <div class="message success">
                    <logic:iterate id="message" name="successMessages">
                        <p><bean:write name="message"/></p>
                    </logic:iterate>
                </div>
            </logic:notEmpty>
            
            <html:hidden property="locationID" />
            <p>
                <label for="locationName">Location Name:</label><span class="required">*</span><br/>
                <html:text styleId="locationName" styleClass="text medium required" property="locationName"/>
            </p>
            <p>
                <label for="presentCost">Present Cost:</label><span class="required">*</span><br/>
                <html:text styleId="presentCost" styleClass="text small required number" property="presentCost"/>
                <label for="presentCost" class="note">U.S. dollars / sq. foot</label>
                <label for="presentCost" class="error" generated="true" style="display:none;"></label>
            </p>
            
            <hr/>
            
            <p>
                <html:submit property="action" value="Save" styleClass="submit small"/>             
                <html:link action="/admin/locationListing.do" styleClass="submit small gray">Cancel</html:link>
            </p>
            
        </div>
        <!-- .block_content ends -->
    </html:form>
    <div class="block_content tab_content clearfix" id="chart_tab">
        
        <table class="stats" rel="line" cellpadding="0" cellspacing="0" width="100%">
            
            <thead>
                <tr>
                    <td>&nbsp;</td>
                    <th scope="col">01.03</th>
                    <th scope="col">02.03</th>
                    <th scope="col">03.03</th>
                    <th scope="col">04.03</th>
                    <th scope="col">05.03</th>
                    <th scope="col">06.03</th>
                    <th scope="col">07.03</th>
                    <th scope="col">08.03</th>
                    <th scope="col">09.03</th>
                    <th scope="col">10.03</th>
                    <th scope="col">11.03</th>
                    <th scope="col">12.03</th>
                    <th scope="col">13.03</th>
                    <th scope="col">14.03</th>
                </tr>
            </thead>
            
            <tbody>
                <tr>
                    <th>Land Cost At <bean:write name="locationForm" property="locationName"/></th>
                    <td>50</td>
                    <td>90</td>
                    <td>40</td>
                    <td>120</td>
                    <td>180</td>
                    <td>280</td>
                    <td>320</td>
                    <td>220</td>
                    <td>100</td>
                    <td>120</td>
                    <td>40</td>
                    <td>70</td>
                    <td>20</td>
                    <td>60</td>
                </tr>
                <tr>
                    <th>AVG Land Cost</th>
                    <td>30</td>
                    <td>50</td>
                    <td>15</td>
                    <td>90</td>
                    <td>140</td>
                    <td>160</td>
                    <td>230</td>
                    <td>170</td>
                    <td>50</td>
                    <td>90</td>
                    <td>30</td>
                    <td>50</td>
                    <td>10</td>
                    <td>40</td>
                </tr>
            </tbody>
        </table>
        
    </div>
    <!-- .block_content ends -->
    
    <div class="bendl"></div>
    <div class="bendr"></div>
    
</div>
<!-- .block ends -->
